package jk.spider.core.task.dispatch;

import jk.spider.core.SpiderController;
import jk.spider.core.task.Task;
import jk.spider.core.task.WorkerTask;
import jk.spider.core.task.threading.WorkerThreadPool;

public abstract class DispatcherTask implements WorkerTask {
	protected SpiderController controller;
	protected WorkerThreadPool pool;
	protected boolean running;
	
	public DispatcherTask(SpiderController controller, WorkerThreadPool pool) {
		this.controller = controller;
		this.pool = pool;
		this.running = true;
	}
	
	public SpiderController getSpiderController() {
		return this.controller;
	}
	
	public void shutdown() {
		this.running = false;
	}
	
	public String getUrlType() {
		return null;
	}
}
